﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:CustomControls="clr-namespace:WPFSceneryEditor.CustomControls"
    x:Class="WPFSceneryEditor.MainWindow"
    Title="MainWindow"
    Height="578"
    Width="800"
    WindowStyle="ThreeDBorderWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="20" />
            <RowDefinition
                Height="100*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="70*" />
            <ColumnDefinition
                Width="Auto" />
            <ColumnDefinition
                Width="300" />
        </Grid.ColumnDefinitions>
        <Menu
            Height="20"
            VerticalAlignment="Top"
            Grid.ColumnSpan="3"
            HorizontalContentAlignment="Stretch"
            Grid.RowSpan="2">
            <MenuItem
                Header="File">
                <MenuItem
                    Header="New" />
                <MenuItem
                    Header="Open" />
                <MenuItem
                    Header="Save" />
                <MenuItem
                    Header="Export">
                    <MenuItem
                        Header="WR2 Export" />
                </MenuItem>
                <MenuItem
                    Header="Quit"
                    Click="OnMenueItemQuit" />
            </MenuItem>
            <MenuItem
                Header="Edit" />
        </Menu>
        <GridSplitter
            HorizontalAlignment="Right"
            VerticalAlignment="Stretch"
            Grid.Column="1"
            Grid.Row="1"
            ResizeBehavior="PreviousAndNext"
            Width="5"
            Background="#EEEEEEEE"
            Grid.RowSpan="1" />
        <TabControl
            Grid.Column="2"
            Grid.Row="1">
            <TabControl.Foreground>
                <ImageBrush />
            </TabControl.Foreground>
            <TabItem
                Header="Terrain"
                Height="30"
                Background="AliceBlue">
            </TabItem>
            <TabItem
                Header="Texturing"
                Height="30"
                Background="AliceBlue">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition
                            Height="100" />
                        <RowDefinition
                            Height="60" />
                        <RowDefinition
                            Height="60" />
                        <RowDefinition
                            Height="33*" />
                    </Grid.RowDefinitions>
                    <CustomControls:ValueBar
                        MinValue="-100"
                        MaxValue="400"
                        Value="0"
                        VerticalAlignment="Stretch"
                        Grid.Row="0" />
                    <CustomControls:ValueBar
                        MinValue="-100"
                        MaxValue="400"
                        Value="0"
                        VerticalAlignment="Stretch"
                        Grid.Row="1" />
                    <CustomControls:ValueBar
                        MinValue="-100"
                        MaxValue="400"
                        Value="0"
                        VerticalAlignment="Stretch"
                        Grid.Row="2" />
                    <CustomControls:ValueBar
                        MinValue="-100"
                        MaxValue="400"
                        Value="0"
                        RenderTransformOrigin="0.5,0.5"
                        Grid.Row="3"
                        Margin="6,70,-6,104">
                        <CustomControls:ValueBar.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform />
                                <SkewTransform />
                                <RotateTransform
                                    Angle="19.297" />
                                <TranslateTransform />
                            </TransformGroup>
                        </CustomControls:ValueBar.RenderTransform>
                    </CustomControls:ValueBar>
                </Grid>
            </TabItem>
            <TabItem
                Header="Roads"
                Height="30"
                Background="AliceBlue">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition
                            Height="150" />
                        <RowDefinition
                            Height="100*" />
                    </Grid.RowDefinitions>
                    <CustomControls:RoadModiferPanel
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Top"
                        Height="256"
                        Grid.RowSpan="2" />
                </Grid>
            </TabItem>
            <TabItem
                Header="Tracks"
                Height="30"
                Background="AliceBlue" />
            <TabItem
                Header="Objects"
                Height="30"
                Background="AliceBlue" />
            <TabItem
                Header="Buildings Structures"
                Height="30"
                Background="AliceBlue" />
        </TabControl>
    </Grid>
</Window>